// vite.config.ts
import { defineConfig, loadEnv } from "file:///D:/Project/DL/%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9/zj-framewrok/node_modules/vite/dist/node/index.js";
import { resolve } from "path";
import vue from "file:///D:/Project/DL/%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9/zj-framewrok/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import svgLoader from "file:///D:/Project/DL/%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9/zj-framewrok/node_modules/vite-svg-loader/index.js";
import Icons from "file:///D:/Project/DL/%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9/zj-framewrok/node_modules/unplugin-icons/dist/vite.mjs";
import IconsResolver from "file:///D:/Project/DL/%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9/zj-framewrok/node_modules/unplugin-icons/dist/resolver.mjs";
import AutoImport from "file:///D:/Project/DL/%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9/zj-framewrok/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///D:/Project/DL/%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9/zj-framewrok/node_modules/unplugin-vue-components/dist/vite.mjs";
import dts from "file:///D:/Project/DL/%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9/zj-framewrok/node_modules/vite-plugin-dts/dist/index.mjs";
import { ElementPlusResolver } from "file:///D:/Project/DL/%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9/zj-framewrok/node_modules/unplugin-vue-components/dist/resolvers.mjs";
var __vite_injected_original_dirname = "D:\\Project\\DL\\\u65B0\u5EFA\u6587\u4EF6\u5939\\zj-framewrok";
var pathResolve = (dir) => {
  return resolve(__vite_injected_original_dirname, ".", dir);
};
var alias = {
  "@": pathResolve("src"),
  "@pkg": pathResolve("pkg")
};
var vite_config_default = ({ mode }) => {
  const env = loadEnv(mode, process.cwd());
  return defineConfig({
    plugins: [
      vue(),
      svgLoader(),
      AutoImport({
        imports: ["vue"],
        resolvers: [
          ElementPlusResolver(),
          IconsResolver({
            prefix: "Icon"
          })
        ],
        dts: pathResolve("src/auto-imports.d.ts")
      }),
      Components({
        resolvers: [
          ElementPlusResolver(),
          IconsResolver({
            enabledCollections: ["ep"],
            prefix: false,
            customCollections: []
          })
        ],
        dts: pathResolve("components.d.ts")
      }),
      Icons({ autoInstall: true }),
      dts({ rollupTypes: true })
    ],
    resolve: {
      alias
    },
    css: {
      preprocessorOptions: {
        scss: {
          additionalData: '@import "@/scss/index.scss";'
        }
      }
    },
    server: {
      port: 666,
      host: "0.0.0.0",
      proxy: {
        [`/api`]: {
          target: env.VITE_BASE_URL,
          changeOrigin: true,
          rewrite: (path) => path.replace(/^\/api/, "")
        }
      }
    },
    build: {
      lib: {
        entry: resolve(__vite_injected_original_dirname, "./pkg/index.ts"),
        name: "pkg",
        fileName: (format) => `pkg-${format}.js`
      },
      outDir: "dist",
      minify: "terser",
      terserOptions: {
        compress: {
          drop_debugger: true,
          drop_console: true
        }
      },
      rollupOptions: {
        external: ["vue", "axios"],
        output: {
          exports: "named",
          globals: {
            vue: "Vue",
            axios: "axios"
          }
        }
      }
    }
  });
};
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxQcm9qZWN0XFxcXERMXFxcXFx1NjVCMFx1NUVGQVx1NjU4N1x1NEVGNlx1NTkzOVxcXFx6ai1mcmFtZXdyb2tcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkQ6XFxcXFByb2pl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